Resursbank\EcomTest\Unit\Lib\Validation\StringValidationTest S

Total Complexity 42
Dependencies 8
Dependents 0
Total lines 647
Lines of code 325
Logical lines of code 97
Comment lines 218
Methods 39
Properties 1

Methods 39

Method Rating Maintainability Complexity Lines of code
testIsJson()
S
52 4 28
testIsUrl()
S
52 1 34
testIsTimestampConvertable()
S
53 1 27
testIsSwedishOrgPrefix()
S
56 1 24
testLengthReturnsTrue()
S
57 1 23
testIsSwedishSsnPrefix()
S
59 1 19
testIsSwedishOrgAcceptsHyphen()
S
71 1 7
testIsSwedishOrg()
S
71 1 7
testIsSwedishOrgThrowsInIllegal()
S
76 1 4
testIsEmailReturnsTrue()
S
71 1 7
testIsSwedishSsnThrowsOnAlpha()
S
76 1 4
testIsSwedishSsnThrowsWithInaccurateHyphen()
S
76 1 4
testIsSwedishSsnAcceptsHyphen()
S
71 1 7
testIsSwedishSsn()
S
71 1 7
testIsSwedishOrgThrowsWithInaccurateHyphen()
S
76 1 4
testIsSwedishSsnThrowsInIllegal()
S
76 1 4
testIsTimestampConvertableThrows()
S
76 1 4
testIsSwedishOrgThrowsOnAlpha()
S
76 1 4
testIsEmailThrowsIllegalValue()
S
76 1 4
setUp()
S
77 1 4
testIsUuidReturnsTrue()
S
71 1 7
testMatchRegexReturnsTrue()
S
69 1 8
testGetKeyThrowsWithInvalidProperty()
S
74 1 4
testGetKeyReturnsTrue()
S
66 1 9
testNotEmptyThrowsWithEmpty()
S
76 1 4
testNotEmptyThrowsWithSpaces()
S
76 1 4
testNotEmptyThrowsWithNewLine()
S
76 1 4
testNotEmptyReturnsTrue()
S
74 1 5
testMatchRegexThrowsOnIllegal()
S
69 1 7
testOneOfThrowsWithoutMatch()
S
74 1 4
testGetKeyThrowsWithMissing()
S
74 1 4
testOneOfReturnsTrue()
S
68 1 8
testIsIntThrowsWithAlpha()
S
76 1 4
testIsIntReturnsTrue()
S
71 1 7
testLengthThrowsWhenTooShort()
S
74 1 4
testLengthThrowsWhenTooLong()
S
74 1 4
testLengthThrowsWithNegativeMin()
S
74 1 4
testLengthThrowsWithInvalidMax()
S
74 1 4
testIsUuidThrowsIllegalValue()
S
76 1 4